package com.ck.service;

import java.util.List;
import java.util.Map;

import com.ck.domain.Admin;
import com.ck.domain.Teacher;


public interface AdminService {
	
	public List<Admin> gainAdminList();
	public Admin gainAdmin(String username);
	public Admin gainAdmin(Integer id);
	public boolean addNewAdmin(Admin admin, Map model);
	public void deleteAdmin(Integer id);
	public boolean editAdminOwnInfo(Admin admin); 
	public boolean validatePassword(Admin admin, String confirmPassword, Map model);
	public boolean editAdminOwnPassword(String oldPassword, Admin admin, Map model);
	public boolean editAdminInfo(Admin admin); 
	public void resetAdminPassword(Integer id);
	
	public List<Teacher> gainTeacherList();
	public Teacher gainTeacher(String username);
	public Teacher gainTeacher(Integer id);
	public boolean addNewTeacher(Teacher teacher, Map model);
	public void deleteTeacher(Integer id);
	public boolean editTeacherInfo(Teacher teacher);
	public void resetTeacherPassword(Integer id);
	
}
